package com.qianniu.napi.admin.service;

import com.qianniu.napi.admin.entity.Jinfo;
import com.qianniu.napi.admin.entity.Order;
import com.qianniu.napi.admin.entity.User;

import java.math.BigDecimal;
import java.util.Map;

public interface IQnpay {


    public Map cancelOrder(Order order,String appid);

    public Map cancelOrderNoaccout(Order order, String appid);

    public Boolean updateOrderStatus(Order o, int status);

    /*
     * 企业付款到零钱
     */
    public Map payPakect(Long mpid, String appid, User user, BigDecimal money, String desc, String ip);


    /*
     * 企业付款到银行卡
     */
    public Map payBank(Long mid,String appid,String openId,BigDecimal money,String desc,String ip);

    /*
     * 企业付款到零钱
     */
    public Map minappPay(Long mid,String appid,Long uid,BigDecimal money,String desc,String sn,String ip,Order order);

    public Map<String, Object> getRefundmap(Long mid, String appid, String orderNo, String refundNo,
                                            BigDecimal realpay, BigDecimal refund, String refundType);

}
